<template>
  <div class="footer" v-if="show">
    <div class="copyright">
      <span>能源管理系统</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'LayoutFooter',
  data() {
    return {
      thisUrl: '',
      show: true,
    }
  },
  created() {

  },
  methods: {
    getUrl(){
      setInterval(function(){
        this.thisUrl = window.location.href;
        if(window.location.href.indexOf("/dashboard/analysis") != -1){
          this.show = false;
        }
      },1000);
    }
  },
  mounted() {
    //this.getUrl();
  },
}
</script>

<style lang="less" scoped>
.footer {
  padding: 0 16px;
  margin: 48px 0 24px;
  text-align: center;
  .copyright {
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
  }
}
</style>